<extend name="../layout" />

<block name="main_content">
    <div class="span8">
        <div class="widget-box">
            <div class="widget-title">
                <h5>{:L('my_desktop')}</h5>
            </div>
            <div class="widget-content nopadding">
                <form method="POST">
                    <table class="table table-bordered">
                        <thead>
                            <tr>
                                <th>{:L("display")}</th>
                                <th>{:L("name")}</th>
                                <th>{:L("num")}</th>
                                <th>{:L("listorder")}</th>
                                <th>{:L("position")}</th>
                            </tr>
                        </thead>
                        <tbody>
                        <volist name="blocks" id="bl">
                            <tr>
                                <td>
                                <input type="checkbox" name="files[]" value="{$bl.file}" <if condition="$bl[selected]">checked</if> />
                                </td>
                                <td>{:L($bl[label])}</td>
                                <td><input type="text" name="num[]" value="{$bl.num|default='5'}" class='input-mini' /></td>
                                <td><input type="text" name="listorder[]" value="{$bl.listorder|default='99'}" class='input-mini' /></td>
                                <td><input type="text" name="position[]" value="{$bl.position|default='1'}" class='input-mini' /></td>
                            </tr>
                        </volist>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan='5'>
                                    <input type='submit' class="btn btn-primary" value="{:L('submit')}" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</block>